<%@ page contentType="text/html;charset=UTF-8" %>
<%@ include file="/WEB-INF/page/share/taglib.jsp" %>
<html>
<head>
<title>修改题目</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<link rel="stylesheet" href="/css/vip.css" type="text/css">
<script language="JavaScript" src="/js/FoshanRen.js"></script>
<script type="text/javascript" src="/js/jscripts/tiny_mce/tiny_mce.js"></script>
<script language="javascript" type="text/javascript">
tinyMCE.init({
	language : "zh_cn",
	mode : "textareas",
	theme : "advanced",
	//width : "500",
	plugins : "table,save,advhr,advimage,advlink,emotions,iespell,insertdatetime,preview,zoom,flash,searchreplace,print,contextmenu",
	theme_advanced_buttons1_add_before : "save,separator",
	theme_advanced_buttons1_add : "fontselect,fontsizeselect",
	theme_advanced_buttons2_add : "separator,insertdate,inserttime,preview,zoom,separator,forecolor,backcolor",
	theme_advanced_buttons2_add_before: "cut,copy,paste,separator,search,replace,separator",
	theme_advanced_buttons3_add_before : "tablecontrols,separator",
	theme_advanced_buttons3_add : "emotions,iespell,flash,advhr,separator,print",
	theme_advanced_toolbar_location : "top",
	theme_advanced_toolbar_align : "left",
	theme_advanced_path_location : "bottom",
	plugin_insertdate_dateFormat : "%Y-%m-%d",
	plugin_insertdate_timeFormat : "%H:%M:%S",
	extended_valid_elements : "a[name|href|target|title|onclick],img[class|src|border=0|alt|title|hspace|vspace|width|height|align|onmouseover|onmouseout|name],hr[class|width|size|noshade],font[face|size|color|style],span[class|align|style]",
	external_link_list_url : "example_data/example_link_list.js",
	external_image_list_url : "example_data/example_image_list.js",
	flash_external_list_url : "example_data/example_flash_list.js"
});


function checkfm(){
	var name=document.getElementById("pointid");
	if (trim(name.value)==""){
		//alert("部门名称不能为空！");
		document.getElementById("name_info").innerHTML="知识点不能为空";
		return false;
	}
	document.getElementById("name_info").innerHTML="";
	return true;
}


</script>
</head>
<body bgcolor="#FFFFFF" leftmargin="0" topmargin="0" marginwidth="0" marginheight="0">
<s:form action="question_add.html" method="post" onsubmit="return checkfm()">
<s:hidden name="pointid" id="pointid"/>
<s:hidden name="type"/>
  	<table width="98%" height="35" border="0" align="center"
  	style="margin-top: 6px;margin-bottom: 10px;">
  	<tr style="background-color: #9CDCF9;"><td class="STYLE1">
  		&nbsp;&nbsp;&nbsp;&nbsp;你现在的位置是： &nbsp;题库管理&nbsp; &gt;&gt; &nbsp;修改题目</td>
  	</tr>
  	</table>
  <table width="98%" border="0" align="center">
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > </td>
      <td width="75%">
        <font color="#FF0000"><s:fielderror/></font>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">题型：</div></td>
      <td width="75%"> 
      	<s:select name="type" disabled="true" list="#{'SingleChoice':'单项选择题','MultiChoice':'多项选择题','FillIn':'填空题','Essay':'论述题','Document':'文档处理题','Program':'编程题','Judgment':'判断题','ShortAnswer':'简答题','Glossary':'名词解释题'}"
              	listKey="key" listValue="value"></s:select></td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">知识点：</div></td>
      <td width="75%"><input type="text" name="pointname" value="${question.point.name}" disabled="disabled" size="30"/> 
        <input type="button" value="选择..." class="frm_btn" onClick="javaScript:winOpen('<s:url action="question_selectUI"/>','列表',600,400)">
        	<font color="#FF0000">* <span id="name_info"></span></font>
        	(<a href="<s:url action='point_addUI.html'/>">添加知识点</a>)</td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td> <div align="right">题目难度：</div></td>
      <td>
      	<s:select name="hardEasy" list="#{'HARD':'难','MIDDLE':'中','EASY':'易'}"
              	listKey="key" listValue="value"></s:select></td>
    </tr> 
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">题目内容：</div></td>
      <td width="75%" > <s:textarea id="title" name="question.title" cols="80" rows="10"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"><td height="15"></td><td></td></tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">题目信息：</div></td>
      <td width="75%" > 
      	<div align="left" id="questioninfo">
      	  <table width="100%">
		     <tr>
		     	<td></td>
		     	<td>
		     	    <table>
		     	     <tr>
				     	<td>A：<s:hidden name="items[0].item" value="A"/></td>
				     	<td><s:textfield name="items[0].options" size="70" maxlength="200"/></td>
				     </tr>
				     <tr>
				     	<td>B：<s:hidden name="items[1].item" value="B"/></td>
				     	<td><s:textfield name="items[1].options" size="70" maxlength="200"/></td>
				     </tr>
				     <tr>
				     	<td>C：<s:hidden name="items[2].item" value="C"/></td>
				     	<td><s:textfield name="items[2].options" size="70" maxlength="200"/></td>
				     </tr>
				     <tr>
				     	<td>D：<s:hidden name="items[3].item" value="D"/></td>
				     	<td><s:textfield name="items[3].options" size="70" maxlength="200"/></td>
				     </tr>
		     	    </table>
		     	</td>
		     </tr>
		     <tr>
		     	<td align="right">答案</td>
		     	<td><s:radio name="question.answer" list="{'A','B','C','D'}"/>
		     	</td>
		     </tr>
		  </table>
      	</div>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"><td height="15"></td><td></td></tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <div align="right">题目解析：</div></td>
      <td width="75%" > <s:textarea id="answeranalyze" name="question.answeranalyze" cols="80" rows="10"/>
      </td>
    </tr>
    <tr bgcolor="f5f5f5"> 
      <td width="25%" > <br></td> 
      <td width="75%">
      	  <s:token/><br/>
          <input type="submit" value=" 确 定 " class="frm_btn">&nbsp;&nbsp;
          <input type="button" value=" 返 回 " class="frm_btn" onclick="javascript:history.back()">
      </td>
    </tr>
  </table>
</s:form>
<br>
</body>
</html>